package com.ly.gateway.service;

import com.ly.common.core.bean.R;
import com.ly.common.core.exception.ServiceException;

import java.io.IOException;

/**
 * 验证码处理
 *
 * @Auth luoyong
 */
public interface ValidateCodeService {

    /**
     * 生成验证码
     */
    R createCapcha() throws IOException, ServiceException;

    /**
     * 校验验证码
     */
    void checkCapcha(String key, String value) throws ServiceException;
}
